package com.qk.controller;


import com.qk.commom.Result;
import com.qk.service.ReportService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vo.OverviewVo;

@RestController
@RequestMapping("/report")
@Slf4j
public class ReportController {
    @Autowired
    private ReportService reportService;

    @GetMapping("/overview")
    public Result getOverview ()
        {log.info("首页数据");
        OverviewVo overviewVo = reportService.getOverview();
        return Result.success(overviewVo);
    }




}
